<html>
<head>
    <title>Nowy kontakt</title>
<!--
    Dropdown list - the HTML SELECT element - of contact types, supplied by JQuery+JSON as in post

    http://stackoverflow.com/questions/94674/jquery-create-select-list-options-from-json-not-happening-as-advertised

-->

</head>
<body>
    <h1>Nowy kontakt do {{ form.instance.person.first_name }}</h1>

    {% if form.errors %}
        <p style="color: red;">
            Please correct the error{{ form.errors|pluralize }} below.
        </p>
    {% endif %}

    <form action="" method="post">
        <table>
            {{ form.as_table }}
        </table>
        <input type="hidden" name="person_id" value="{{ form.instance.person.id }}"/>
        <input type="submit" name="Submit" value="Zapisz">
        <input type="submit" name="Cancel" value="Anuluj">
    </form>
</body>
</html>
